<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;
Route::get('/', 'index'); // 默认页面

Route::group('clean', function () {
    // 注意：路由定义不能是包含关系，否则可能导致路由进入错误
    // 清洗批次管理
    Route::rule('/list', 'clean.Projects/list');
    Route::post('/add', 'clean.Projects/add');
    Route::post('/up_cases_detail', 'clean.Projects/uploadCasesDetail');

    // 甲方管理
    Route::post('/company', 'clean.Projects/getCompanyList');
    Route::post('/add_company', 'clean.Projects/addCompany');
    Route::post('/edit_company', 'clean.Projects/editCompany');

    // stream 操作
    Route::post('/stream/add_rename_knowgle', 'clean.Stream/addZjRenameAiStream');
    // Route::post('/stream/all_addstream', 'clean.Stream/allAddZjRenameAiStream');
    // Route::post('/stream/all_delstream', 'clean.Stream/alldelZjRenameAiStream');
    Route::post('/stream/add_clean', 'clean.Stream/addChangeFileStream');
    Route::post('/stream/test_clean', 'clean.Stream/testAddClean');


    // Route::post('/add_konw', 'clean.Projects/addKnowledgeBase');
    // Route::post('/del_know', 'clean.Projects/addKnowledgeBase');
    // 测试接口
    Route::post('/redis$', 'clean.Tests/index');
    Route::post('/redis/callback', 'clean.Tests/callbackSream');
    Route::rule('/redis/test', 'clean.Tests/test');
    Route::rule('/redis/addstream', 'clean.Tests/addZjRenameAiStream');
    Route::rule('/redis/deletestream', 'clean.Tests/deleteZjRenameAiStream');
    Route::rule('/redis/getstream', 'clean.Tests/getZjRenameAiStream');
    Route::rule('/redis/callbackstream', 'clean.Tests/callbackStream');
});